package com.fl.serivce;

import com.fl.dao.ParamDao;
import com.fl.sys.SysConfig;

public class SysService {

	public static String getUser() throws Exception{
		return ParamDao.getParamTableVal(SysConfig.USER);
	}
	
	public static void saveUser(String user) throws Exception{
		ParamDao.updateParamValue(SysConfig.USER, user);
	}
	
	public static String getPassword() throws Exception{
		return ParamDao.getParamTableVal(SysConfig.PASSWD);
	}
	
	public static void savePassword(String password) throws Exception{
		ParamDao.updateParamValue(SysConfig.PASSWD, password);
	}
	
	public static String getLicense() throws Exception{
		return ParamDao.getParamTableVal(SysConfig.LICENSE);
	}
	
	public static void saveLicense(String license) throws Exception{
		ParamDao.updateParamValue(SysConfig.LICENSE, license);
	}
	
	
}
